package org.fundaciomobilitatsostenible.momo.cs;



import javax.xml.bind.*;

import org.fundaciomobilitatsostenible.momo.cs.csp.CsplType;
import org.fundaciomobilitatsostenible.momo.cs.csp.ObjectFactory;


public class Cspl {

    private ObjectFactory of;
    private CsplType grList;

    public Cspl(){
        of = new ObjectFactory();
        grList = of.createCsplType();
    }

    public void make( String id, String l ){
    	CsplType g = of.createCsplType();
    	g.setId(id);
        //g.setText( t );
        //g.setLanguage( l );
        //grList.getCsplType().add( g );
    	
    }

    public void marshal() {
        try {
            JAXBElement<CsplType> gl =
                of.createCspl(grList);
            JAXBContext jc = JAXBContext.newInstance( "cspl" );
            Marshaller m = jc.createMarshaller();
            m.marshal( gl, System.out );
            
            } catch( JAXBException jbe ){
            // ...
        }
    }
    
}
